import com.genexus.*;
import com.genexus.ui.*;

public final class subwmntprsn16 extends GXSubfileElement
{
   private byte VSel ;
   private String PrsCod ;
   private String TipDocNom ;
   private String PrsNroDoc ;
   private String PrsApePat ;
   private String PrsApeMat ;
   private String PrsPriNom ;
   private String PrsSegNom ;
   private short TIPDOCCOD ;
   private byte TipPrsCod ;
   private String PrsEst ;
   private java.util.Date PrsFCR ;
   private String PrsHCR ;
   private String PrsUCR ;
   private java.util.Date PrsFUM ;
   private String PrsHUM ;
   private String PrsUUM ;
   public byte getVSel( )
   {
      return VSel ;
   }

   public void setVSel( byte value )
   {
      VSel = value;
   }

   public String getPrsCod( )
   {
      return PrsCod ;
   }

   public void setPrsCod( String value )
   {
      PrsCod = value;
   }

   public String getTipDocNom( )
   {
      return TipDocNom ;
   }

   public void setTipDocNom( String value )
   {
      TipDocNom = value;
   }

   public String getPrsNroDoc( )
   {
      return PrsNroDoc ;
   }

   public void setPrsNroDoc( String value )
   {
      PrsNroDoc = value;
   }

   public String getPrsApePat( )
   {
      return PrsApePat ;
   }

   public void setPrsApePat( String value )
   {
      PrsApePat = value;
   }

   public String getPrsApeMat( )
   {
      return PrsApeMat ;
   }

   public void setPrsApeMat( String value )
   {
      PrsApeMat = value;
   }

   public String getPrsPriNom( )
   {
      return PrsPriNom ;
   }

   public void setPrsPriNom( String value )
   {
      PrsPriNom = value;
   }

   public String getPrsSegNom( )
   {
      return PrsSegNom ;
   }

   public void setPrsSegNom( String value )
   {
      PrsSegNom = value;
   }

   public short getTIPDOCCOD( )
   {
      return TIPDOCCOD ;
   }

   public void setTIPDOCCOD( short value )
   {
      TIPDOCCOD = value;
   }

   public byte getTipPrsCod( )
   {
      return TipPrsCod ;
   }

   public void setTipPrsCod( byte value )
   {
      TipPrsCod = value;
   }

   public String getPrsEst( )
   {
      return PrsEst ;
   }

   public void setPrsEst( String value )
   {
      PrsEst = value;
   }

   public java.util.Date getPrsFCR( )
   {
      return PrsFCR ;
   }

   public void setPrsFCR( java.util.Date value )
   {
      PrsFCR = value;
   }

   public String getPrsHCR( )
   {
      return PrsHCR ;
   }

   public void setPrsHCR( String value )
   {
      PrsHCR = value;
   }

   public String getPrsUCR( )
   {
      return PrsUCR ;
   }

   public void setPrsUCR( String value )
   {
      PrsUCR = value;
   }

   public java.util.Date getPrsFUM( )
   {
      return PrsFUM ;
   }

   public void setPrsFUM( java.util.Date value )
   {
      PrsFUM = value;
   }

   public String getPrsHUM( )
   {
      return PrsHUM ;
   }

   public void setPrsHUM( String value )
   {
      PrsHUM = value;
   }

   public String getPrsUUM( )
   {
      return PrsUUM ;
   }

   public void setPrsUUM( String value )
   {
      PrsUUM = value;
   }

   public void clear( )
   {
      VSel = 0 ;
      PrsCod = "" ;
      TipDocNom = "" ;
      PrsNroDoc = "" ;
      PrsApePat = "" ;
      PrsApeMat = "" ;
      PrsPriNom = "" ;
      PrsSegNom = "" ;
      TIPDOCCOD = 0 ;
      TipPrsCod = 0 ;
      PrsEst = "" ;
      PrsFCR = GXutil.nullDate() ;
      PrsHCR = "" ;
      PrsUCR = "" ;
      PrsFUM = GXutil.nullDate() ;
      PrsHUM = "" ;
      PrsUUM = "" ;
   }

   public int compareTo( GXSubfileElement element ,
                         int column )
   {
      switch (column)
      {
            case 0 :
               if ( VSel > ((subwmntprsn16) element).getVSel() ) return 1;
               if ( VSel < ((subwmntprsn16) element).getVSel() ) return -1;
               return 0;
            case 1 :
               return GXutil.strcmp( GXutil.upper( PrsCod ), GXutil.upper( ((subwmntprsn16) element).getPrsCod() ));
            case 2 :
               return GXutil.strcmp( GXutil.upper( TipDocNom ), GXutil.upper( ((subwmntprsn16) element).getTipDocNom() ));
            case 3 :
               return GXutil.strcmp( GXutil.upper( PrsNroDoc ), GXutil.upper( ((subwmntprsn16) element).getPrsNroDoc() ));
            case 4 :
               return GXutil.strcmp( GXutil.upper( PrsApePat ), GXutil.upper( ((subwmntprsn16) element).getPrsApePat() ));
            case 5 :
               return GXutil.strcmp( GXutil.upper( PrsApeMat ), GXutil.upper( ((subwmntprsn16) element).getPrsApeMat() ));
            case 6 :
               return GXutil.strcmp( GXutil.upper( PrsPriNom ), GXutil.upper( ((subwmntprsn16) element).getPrsPriNom() ));
            case 7 :
               return GXutil.strcmp( GXutil.upper( PrsSegNom ), GXutil.upper( ((subwmntprsn16) element).getPrsSegNom() ));
            case 8 :
               if ( TIPDOCCOD > ((subwmntprsn16) element).getTIPDOCCOD() ) return 1;
               if ( TIPDOCCOD < ((subwmntprsn16) element).getTIPDOCCOD() ) return -1;
               return 0;
            case 9 :
               if ( TipPrsCod > ((subwmntprsn16) element).getTipPrsCod() ) return 1;
               if ( TipPrsCod < ((subwmntprsn16) element).getTipPrsCod() ) return -1;
               return 0;
            case 10 :
               return GXutil.strcmp( GXutil.upper( PrsEst ), GXutil.upper( ((subwmntprsn16) element).getPrsEst() ));
            case 11 :
               return GXutil.datecmp( PrsFCR , ((subwmntprsn16) element).getPrsFCR() );
            case 12 :
               return GXutil.strcmp( GXutil.upper( PrsHCR ), GXutil.upper( ((subwmntprsn16) element).getPrsHCR() ));
            case 13 :
               return GXutil.strcmp( GXutil.upper( PrsUCR ), GXutil.upper( ((subwmntprsn16) element).getPrsUCR() ));
            case 14 :
               return GXutil.datecmp( PrsFUM , ((subwmntprsn16) element).getPrsFUM() );
            case 15 :
               return GXutil.strcmp( GXutil.upper( PrsHUM ), GXutil.upper( ((subwmntprsn16) element).getPrsHUM() ));
            case 16 :
               return GXutil.strcmp( GXutil.upper( PrsUUM ), GXutil.upper( ((subwmntprsn16) element).getPrsUUM() ));
      }
      return 0;
   }

   public boolean isEmpty( )
   {
      return ( ( VSel == 0 ) && ( GXutil.strcmp(PrsCod, "") == 0 ) && ( GXutil.strcmp(TipDocNom, "") == 0 ) && ( GXutil.strcmp(PrsNroDoc, "") == 0 ) && ( GXutil.strcmp(PrsApePat, "") == 0 ) && ( GXutil.strcmp(PrsApeMat, "") == 0 ) && ( GXutil.strcmp(PrsPriNom, "") == 0 ) && ( GXutil.strcmp(PrsSegNom, "") == 0 ) && ( TIPDOCCOD == 0 ) && ( TipPrsCod == 0 ) && ( GXutil.strcmp(PrsEst, "") == 0 ) && PrsFCR.equals( GXutil.nullDate() ) && ( GXutil.strcmp(PrsHCR, "") == 0 ) && ( GXutil.strcmp(PrsUCR, "") == 0 ) && PrsFUM.equals( GXutil.nullDate() ) && ( GXutil.strcmp(PrsHUM, "") == 0 ) && ( GXutil.strcmp(PrsUUM, "") == 0 ) )  ;
   }

   public void setColumn( GXComponent cell ,
                          int field )
   {
      switch (field) {
         case 0 :
            cell.setValue( VSel );
            break;
         case 1 :
            cell.setValue( PrsCod );
            break;
         case 2 :
            cell.setValue( TipDocNom );
            break;
         case 3 :
            cell.setValue( PrsNroDoc );
            break;
         case 4 :
            cell.setValue( PrsApePat );
            break;
         case 5 :
            cell.setValue( PrsApeMat );
            break;
         case 6 :
            cell.setValue( PrsPriNom );
            break;
         case 7 :
            cell.setValue( PrsSegNom );
            break;
         case 8 :
            cell.setValue( TIPDOCCOD );
            break;
         case 9 :
            cell.setValue( TipPrsCod );
            break;
         case 10 :
            cell.setValue( PrsEst );
            break;
         case 11 :
            cell.setValue( PrsFCR );
            break;
         case 12 :
            cell.setValue( PrsHCR );
            break;
         case 13 :
            cell.setValue( PrsUCR );
            break;
         case 14 :
            cell.setValue( PrsFUM );
            break;
         case 15 :
            cell.setValue( PrsHUM );
            break;
         case 16 :
            cell.setValue( PrsUUM );
            break;
      }
   }

   public boolean isFieldChanged( GXComponent cell ,
                                  int field )
   {
      switch (field) {
         case 0 :
            return ( (((GUIObjectByte) cell).getValue() == VSel) );
         case 1 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsCod) == 0) );
         case 2 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),TipDocNom) == 0) );
         case 3 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsNroDoc) == 0) );
         case 4 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsApePat) == 0) );
         case 5 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsApeMat) == 0) );
         case 6 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsPriNom) == 0) );
         case 7 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsSegNom) == 0) );
         case 8 :
            return ( (((GUIObjectShort) cell).getValue() == TIPDOCCOD) );
         case 9 :
            return ( (((GUIObjectByte) cell).getValue() == TipPrsCod) );
         case 10 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsEst) == 0) );
         case 11 :
            return ( (((GUIObjectDate) cell).getValue().equals(PrsFCR)) );
         case 12 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsHCR) == 0) );
         case 13 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsUCR) == 0) );
         case 14 :
            return ( (((GUIObjectDate) cell).getValue().equals(PrsFUM)) );
         case 15 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsHUM) == 0) );
         case 16 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsUUM) == 0) );
      }
      return false;
   }

   public void setField( int i ,
                         GXComponent value )
   {
      switch (i)
      {
            case 0 :
               VSel = value.getByteValue() ;
               break;
            case 1 :
               PrsCod = value.getStringValue() ;
               break;
            case 2 :
               TipDocNom = value.getStringValue() ;
               break;
            case 3 :
               PrsNroDoc = value.getStringValue() ;
               break;
            case 4 :
               PrsApePat = value.getStringValue() ;
               break;
            case 5 :
               PrsApeMat = value.getStringValue() ;
               break;
            case 6 :
               PrsPriNom = value.getStringValue() ;
               break;
            case 7 :
               PrsSegNom = value.getStringValue() ;
               break;
            case 8 :
               TIPDOCCOD = value.getShortValue() ;
               break;
            case 9 :
               TipPrsCod = value.getByteValue() ;
               break;
            case 10 :
               PrsEst = value.getStringValue() ;
               break;
            case 11 :
               PrsFCR = value.getDateValue() ;
               break;
            case 12 :
               PrsHCR = value.getStringValue() ;
               break;
            case 13 :
               PrsUCR = value.getStringValue() ;
               break;
            case 14 :
               PrsFUM = value.getDateValue() ;
               break;
            case 15 :
               PrsHUM = value.getStringValue() ;
               break;
            case 16 :
               PrsUUM = value.getStringValue() ;
               break;
      }
   }

   public void setField( int i ,
                         GXSubfileElement element )
   {
      switch (i)
      {
            case 0 :
               VSel = ((subwmntprsn16) element).VSel;
               return;
            case 1 :
               PrsCod = ((subwmntprsn16) element).PrsCod;
               return;
            case 2 :
               TipDocNom = ((subwmntprsn16) element).TipDocNom;
               return;
            case 3 :
               PrsNroDoc = ((subwmntprsn16) element).PrsNroDoc;
               return;
            case 4 :
               PrsApePat = ((subwmntprsn16) element).PrsApePat;
               return;
            case 5 :
               PrsApeMat = ((subwmntprsn16) element).PrsApeMat;
               return;
            case 6 :
               PrsPriNom = ((subwmntprsn16) element).PrsPriNom;
               return;
            case 7 :
               PrsSegNom = ((subwmntprsn16) element).PrsSegNom;
               return;
            case 8 :
               TIPDOCCOD = ((subwmntprsn16) element).TIPDOCCOD;
               return;
            case 9 :
               TipPrsCod = ((subwmntprsn16) element).TipPrsCod;
               return;
            case 10 :
               PrsEst = ((subwmntprsn16) element).PrsEst;
               return;
            case 11 :
               PrsFCR = ((subwmntprsn16) element).PrsFCR;
               return;
            case 12 :
               PrsHCR = ((subwmntprsn16) element).PrsHCR;
               return;
            case 13 :
               PrsUCR = ((subwmntprsn16) element).PrsUCR;
               return;
            case 14 :
               PrsFUM = ((subwmntprsn16) element).PrsFUM;
               return;
            case 15 :
               PrsHUM = ((subwmntprsn16) element).PrsHUM;
               return;
            case 16 :
               PrsUUM = ((subwmntprsn16) element).PrsUUM;
               return;
      }
   }

}

